package com.chixing.day07.Day07_Test;

public class Computer {
    static DmengVideoCard card = new DmengVideoCard();
    static IntelCpu cpu = new IntelCpu();
    static MainBoard board = new MainBoard(cpu, card);

    static void OpenPc() {
        board.run();
    }

    static void ClosePc() {
        board.close();
    }

    public static void main(String[] args) {
        Computer com = new Computer();
        OpenPc();
        ClosePc();
    }
}